import {getCategoryFilterApi} from '@/apis/category'
import { onMounted , ref} from 'vue'
import {useRoute} from 'vue-router'

export  function useBreadcrumb(){

let BreadcrumbList = ref({})
const route = useRoute()
const getCategoryFilter = async() => {
  const res = await getCategoryFilterApi(route.params.id)
  BreadcrumbList.value = res.result
}

onMounted(() => {
  getCategoryFilter()
})



return {
  BreadcrumbList
}




}
